<ion-view>
    <ion-pane>

        <ion-header-bar class="index_head">
            <button class="button button-icon icon ion-android-arrow-back" ng-click="$ionicGoBack()" style="color: #fff"></button>
            <div class="h1 title">订单详情</div>
            <div class="head_menu_icon" ng-click="toggleRightSideMenu()">
                {{name}}
                <img src="img/icon/mechicon/menu_icon.png" alt="">
            </div>
        </ion-header-bar>
        <ul class="dataHome_list clear">
            <li  ng-click="dataTab('1','-6')" ng-class="n==1?'actives':''">
                最近七天
            </li>
            <li ng-click="dataTab('2','-29')" ng-class="n==2?'actives':''">
                最近一月
            </li>
            <li ng-click="dataTab('3','-179')" ng-class="n==3?'actives':''">
                最近半年
            </li>
            <li ng-click="dataTab('4','-365')" ng-class="n==4?'actives':''">
                最近一年
            </li>
            <li ng-click="dataTab('5','-1')" ng-class="n==5?'actives':''">
                全部
            </li>
        </ul>
        <ion-content class="dataHome_con_wrap" scroll="false">

            <div class="datadetail_container" >
                <div class="detail_clearfix">
                    <div class="bb-custom-wrapper" >

                        <div class="swiper-container">
                            <div class="swiper-wrapper">
                                <div class="swiper-slide" ng-repeat="item in orderList track by $index" ng-if="$index%2==0">
                                    <div class="bb-item-block">
                                        <div class="detail-row">
                                            <div class="det-htit">订单ID</div>
                                            <div class="det-span">{{orderList[$index].oCode}}</div>
                                        </div>
                                        <div class="detail-row">
                                            <div class="det-htit">产品简称</div>
                                            <div class="det-span">{{orderList[$index].pName}}</div>
                                        </div>
                                        <div class="detail-row">
                                            <div class="det-htit">投资顾问</div>
                                            <div class="det-span">{{orderList[$index].userName}}</div>
                                        </div>
                                        <div class="detail-row">
                                            <div class="det-htit">客户信息</div>
                                            <div class="det-span">{{orderList[$index].cMobile | coverPhone}}</div>
                                        </div>
                                        <div class="detail-row">
                                            <div class="det-htit">成交金额</div>
                                            <div class="det-span det-origin">{{orderList[$index].oAmount/10000}}万</div>
                                        </div>
                                        <div class="detail-row">
                                            <div class="det-htit">报单状态</div>
                                            <div class="det-span det-green">{{orderList[$index].phoStatus|orderPhoStatus}}</div>
                                        </div>
                                        <div class="detail-row" style="margin-bottom: 10px;">
                                            <div class="det-htit">合同状态</div>
                                            <div class="det-span det-origin">{{orderList[$index].contractStatus| orderContractStatus}}</div>
                                        </div>
                                    </div>

                                    <div class="bb-item-block" ng-if="orderList[$index+1]">
                                        <div class="detail-row">
                                            <div class="det-htit">订单ID</div>
                                            <div class="det-span">{{orderList[$index+1].oCode}}</div>
                                        </div>
                                        <div class="detail-row">
                                            <div class="det-htit">产品简称</div>
                                            <div class="det-span">{{orderList[$index+1].pName}}</div>
                                        </div>
                                        <div class="detail-row">
                                            <div class="det-htit">投资顾问</div>
                                            <div class="det-span">{{orderList[$index+1].userName}}</div>
                                        </div>
                                        <div class="detail-row">
                                            <div class="det-htit">客户信息</div>
                                            <div class="det-span">{{orderList[$index+1].cMobile | coverPhone}}</div>
                                        </div>
                                        <div class="detail-row">
                                            <div class="det-htit">成交金额</div>
                                            <div class="det-span det-origin">{{orderList[$index+1].oAmount/10000}}万</div>
                                        </div>
                                        <div class="detail-row">
                                            <div class="det-htit">报单状态</div>
                                            <div class="det-span det-green">{{orderList[$index+1].phoStatus|orderPhoStatus}}</div>
                                        </div>
                                        <div class="detail-row" style="margin-bottom: 10px;">
                                            <div class="det-htit">合同状态</div>
                                            <div class="det-span det-origin">{{orderList[$index+1].contractStatus| orderContractStatus}}</div>
                                        </div>
                                    </div>
                                    <div class="detail_bottimg" ng-if="orderList[$index+1]">
                                        <img src="img/detail_deimg.png">
                                    </div>
                                </div>

                            </div>


                        </div>
                </div>

                </div>


            </div><!-- /container -->



        </ion-content>


    </ion-pane>
</ion-view>